package com.ykdl.member.kid.beans;

import java.io.Serializable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;

public class Top_ad_ItemsBean implements Serializable, IJsonParser{

	/**
	 *  {
            "url": "http://imgs.ykdllmyr.com/aditems/2014/12/30/iTk4zCmi2NjkVWQ9Ts8c6E.jpeg",
            "action": "http://www.baidu.com"
        }
	 */
	private static final long serialVersionUID = 5783893518626694914L;
	private String url ;
	private String action ;
	public String getUrl() {
		return url;
	}
	public String getAction() {
		return action;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, Top_ad_ItemsBean.class);
		}
		return null;
	}

}
